<template>
  <div>
    <el-menu
      :default-active="activeIndex1"
      class="el-menu-demo"
      mode="horizontal"
      background-color="#087"
      text-color="#fff"
      active-text-color="#ffd04b"
    >
      <el-menu-item index="1"><router-link to="/login">登录</router-link></el-menu-item>
      <el-menu-item index="2"><router-link to="/register">注册</router-link></el-menu-item>
      <el-menu-item index="3"><router-link to="/article">文章</router-link></el-menu-item>
      <el-menu-item index="4"><router-link to="/list">列表</router-link></el-menu-item>
    </el-menu>
    <div><router-view></router-view></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1'
    }
  },
  methods: {}
}
</script>

<style>
a {
  text-decoration: none;
}
</style>
